error () is a command block and a block from the Catch errors library. It is used to manually throw an error.

error []::control

Example Uses

Throwing an error instead of freezing if an user supplies a non-number in a block that uses warp:

if <not <is (input) a [number v]?::operators>> {
error [Must be a number.]::control
}::control

Workarounds

primitive [err_error(msg) v] (msg) @delInput @addInput::grey

See Also